package com.fcscs.cservice.cronjob;

import java.util.HashMap;
import java.util.Map;

import org.apache.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;

import com.fcscs.cservice.service.CronJobManager;

public class UpdateDBDateJob {
	
	private static Logger LOG = Logger.getLogger(UpdateDBDateJob.class);

	
	@Autowired
	CronJobManager jobMgr;
	
	public void update() {
		try {
			Map<String, Object> params = new HashMap<String, Object>();
			jobMgr.atomicBatchUpdate(params);
			LOG.info("Update DB Datetime successfully");
		} catch (Exception e) {
			e.printStackTrace();
		}
	}

}
